package com.ruoyi.LXHappointment.service.impl;

import com.ruoyi.LXHappointment.mapper.AppointmentSysUserMapper;
import com.ruoyi.LXHappointment.service.IAppointmentSysUserService;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 预约模块用户服务实现类
 * 类名添加Appointment前缀，与投诉模块区分
 */
@Service
public class AppointmentSysUserServiceImpl implements IAppointmentSysUserService {

    @Autowired
    private AppointmentSysUserMapper appointmentSysUserMapper;

    @Override
    public List<Map<String, Object>> selectTeamDoctorsByUserId(Long userId) {
        return appointmentSysUserMapper.selectTeamDoctorsByUserId(userId);
    }

    @Override
    public SysUser selectUserByUserName(String userName) {
        return appointmentSysUserMapper.selectUserByUserName(userName);
    }
}